package com.hd.trans.network.bean.trans;

import java.util.Map;

public class TextTransNewRes {
    //译文内容
    private String toText;
    //原文语言
    private String fromLang;
    //译文语言
    private String toLang;
    //翻译状态：true为成功，false为失败
    private boolean status;
    //失败原因，status = true时为空
    private String reason;

    private boolean isDanger;
    //双语对照
    private Map<String, Map<String,Align>> align;//或者用Map、HashMap

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getToText() {
        return toText;
    }

    public void setToText(String toText) {
        this.toText = toText;
    }

    public String getFromLang() {
        return fromLang;
    }

    public void setFromLang(String fromLang) {
        this.fromLang = fromLang;
    }

    public String getToLang() {
        return toLang;
    }

    public void setToLang(String toLang) {
        this.toLang = toLang;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Map<String, Map<String, Align>> getAlign() {
        return align;
    }

    public void setAlign(Map<String, Map<String, Align>> align) {
        this.align = align;
    }

    public boolean isDanger() {
        return isDanger;
    }

    public void setDanger(boolean danger) {
        isDanger = danger;
    }

    @Override
    public String toString() {
        return "TextTransNewRes{" +
                "toText='" + toText + '\'' +
                ", fromLang='" + fromLang + '\'' +
                ", toLang='" + toLang + '\'' +
                ", status=" + status +
                ", reason='" + reason + '\'' +
                ", isDanger=" + isDanger +
                ", align=" + align +
                '}';
    }
}
